hljs.registerLanguage("lua", function (e) { var t = "\\[=*\\[", a = "\\]=*\\]", r = { b: t, e: a, c: ["self"] }, n = [e.C("--(?!" + t + ")", "$"), e.C("--" + t, a, { c: [r], r: 10 })]; return { l: e.UIR, k: { keyword: "and break do else elseif end false for if in local nil not or repeat return then true until while", built_in: "g_game isOnline getLocalPlayer attack follow getCreatureCount getTalkMessages getTextMessages lastTalkMessage lastTextMessage isAttacking getAttackingCreature isFollowing talk talkChannel talkPrivate setChaseMode setFightMode setSafeFight setPVPMode turn stop useMapItem useItem use useInventoryItem useMapItemOnCreature useMapItemOnPosition useInventoryItemOnCreature useInventoryItemOnPosition useItemOnCreature useItemOnPosition getBestTurnDirection getMonstersInFront getMonstersAround getContainers getContainer getContainersCount closeAllContainers openItem open moveItem move reconnect g_map getCreatures getTiles isOnScreen LocalPlayer getName getHealth getHealthPercent getLevel getMagicLevel getMana getManaPercent getMaxHealth getMaxMana getPosition getSkill getSoul getSpeed getStates hasState getDirection getItemsCount Position x y z getDistance isInRange Creature getHealthPercent getId getName getPosition isMonster isNpc isPlayer getDirection TextMessage message mode TalkMessage channel position level message mode name Container getSize getItems getSlotPosition getId getCapacity hasParent findItemById getName getItemsCount Item getPosition getId getCount isContainer getStackPos isStackable wait sleep auto gotolabel setOption getOption _G _VERSION assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall coroutine debug io math os package string table" }, c: n.concat([ { cN: "function", bK: "function", e: "\\)", c: [e.inherit(e.TM, { b: "([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*" }), { cN: "params", b: "\\(", eW: !0, c: n }].concat(n) }, e.CNM, e.ASM, e.QSM, { cN: "string", b: t, e: a, c: [r], r: 5 }]) } });